#!/bin/sh
echo '请选择操作(输入数字回车即可)'
echo '1.清除缓存'
echo '2.查看路由'
echo '3.服务容器'
echo '4.设置权限'
read name
case $name in
    '1')
        /usr/bin/php ./app/console cache:clear
        rm -rf ./app/cache/*
        rm -rf ./app/logs/*
        chmod 777 . -R
        ;;
    '2')
        /usr/bin/php ./app/console debug:router
        ;;
    '3')
        /usr/bin/php ./app/console debug:container
        ;;
    '4')
        chmod 777 . -R
        ;;
    *)
        echo '*'
        ;;
esac
